<template>
  <div class="item">
    <cartlistItem
      v-for="(item, index) in cartlist"
      :cartList="item"
      :key="index"
      class="listitem"
    ></cartlistItem>
  </div>
</template>

<script>
import cartlistItem from "./cartListItem.vue";
export default {
  data() {
    return {
      cartlist: [],
    };
  },
  components: {
    cartlistItem,
  },
  created() {
    this.cartlist = this.$store.state.cartList;
  },
};
</script>
<style scoped>
.listitem {
  width: 100%;
  position: relative;

}
.item {
  /* margin-top: 44px; */
  display: flex;
  flex-wrap: wrap;
}
</style>
